<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="d" uri="/WEB-INF/resource.tld" %>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  
</head>

<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <%@ include file="/WEB-INF/include/menu.jsp"%>
  
  <div class="container main-content">

    <div class="panel panel-default x-panel x-panel-layout">

      <div class="panel-heading">
        <ol class="breadcrumb">
          <li><a href="${ctx.host}/ecommerce">课程管理</a></li>
          <li class="active">排课管理</li>
          <li class="no-before pull-right" style="min-width: 65px;">
            <a onclick="window.history.back();"><i class="glyphicon glyphicon-arrow-left"></i>&nbsp;&nbsp;返回</a>
          </li>
        </ol>
      </div>

      <div class="panel-body">

        <div class="col-xs-2 x-panel-layout-left no-horizontal-padding">
          <%@ include file="/WEB-INF/include/submenu.jsp"%>
        </div>

        <div class="col-xs-10 x-panel-layout-right">

          <div class="x-breadcrumb-wrapper">
            <div class="x-breadcrumb clearfix">
              <h2><i class="glyphicon glyphicon-fire" title="成果报告"></i>&nbsp;&nbsp;<span>1V1线下减脂营&nbsp;-&nbsp;成果报告</span></h2>
              <div class="pull-right">
                <a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/print?generated=false" class="btn btn-success x-btn btn-shadow btn-shadow-success ">打印课件</a>
                <a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/print?generated=true" class="btn btn-success x-btn btn-shadow btn-shadow-success ">打印已发送课件</a>
              </div>
            </div>
          </div>
          
          <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
          
            <div class="x-breadcrumb-wrapper top-margin-20" style="position: relative;">
              <ul class="nav nav-pills x-breadcrumb-nav">
               <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}">基本信息</a></li>
               <c:if test="${not empty courseRound.fitnessGroup}">
                 <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/batch-coursewares/weekly-plan/1">周计划</a></li>
                 <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/batch-coursewares/1?type=course">课程</a></li>
               </c:if>
               <c:if test="${!courseRound.courseStatus.prepare}">
                 <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/physical-data">身体数据</a></li>
               </c:if>
               <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/basic-information">学员基础信息</a></li>
               <c:if test="${not empty resultReport}">
               <li class="pull-left active"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/result-report">成果报告</a></li>
               </c:if>
              </ul>
            </div>
          
          <div class="clearfix">
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>体重体脂三围数据变化</span>
                </h2>
              </div>
            </div>
  
            <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <thead>
                <tr>
                  <th></th>
                  <th>体重(KG)</th>
                  <th>体脂(%)</th>
                  <th>胸围(CM)</th>
                  <th>腰围(CM)</th>
                  <th>臀围(CM)</th>
                  <th>备注</th>
                </tr>
              </thead>
              <tbody>
                <c:forEach var="bwhRecord" items="${bwhRecords}">
                  <tr>
                  <td><c:choose><c:when test="${bwhRecord.week eq 0}">入营前</c:when><c:otherwise>第${bwhRecord.week}周</c:otherwise></c:choose></td>
                  <td><fmt:formatNumber value='${bwhRecord.weight}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                  <td><fmt:formatNumber value='${bwhRecord.bodyFatRate}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                  <td><fmt:formatNumber value='${bwhRecord.bust}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                  <td><fmt:formatNumber value='${bwhRecord.waist}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                  <td><fmt:formatNumber value='${bwhRecord.hips}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                  <td>${bwhRecord.remark}</td>
                </tr>
                </c:forEach>
              </tbody>
            </table>
              
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>基础力量/心肺及其他变化</span>
                </h2>
              </div>
            </div>
              
           <%--  <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <thead>
                <tr>
                  <th></th>
                  <th></th>
                  <th>入营前</th>
                  <th>${courseRound.fitnessGroup.weeks}周后</th>
                  <th>接下来的计划</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td rowspan="3" width="10%">基础力量</td>
                  <td width="20%">静蹲</td>
                  <td width="20%">${basicData.staticSquat.staticSquat}</td>
                  <td width="20%">${resultReport.staticSquat.staticSquat}</td>
                  <td rowspan="3" width="30%">${resultReport.basicForcePlan}</td>
                </tr>
                
                <tr>
                  <td>俯卧撑（30s）</td>
                  <td>${basicData.pushUp.pushUp}</td>
                  <td>${resultReport.pushUp.pushUp}</td>
                </tr>
                
                <tr>
                  <td>两头起（30s）</td>
                  <td>${basicData.vUp.vUp}</td>
                  <td>${resultReport.vUp.vUp}</td>
                </tr>
                
                <tr>
                  <td>心肺测试</td>
                  <td>一分钟波比跳</td>
                  <td>
                    <c:if test="${not empty basicData.standardBobi}">${basicData.standardBobi ? '标准，' : '简化，'}</c:if>
                    ${basicData.bobi}${empty basicData.bobi ? '' : '个'}
                  </td>
                  <td>
                    <c:if test="${not empty resultReport.standardBobi}">${resultReport.standardBobi ? '标准，' : '简化，'}</c:if>
                    ${resultReport.bobi}${empty resultReport.bobi ? '' : '个'}
                  </td>
                  <td>${resultReport.heartLungPlan}</td>
                </tr>
                
                <tr>
                  <td colspan="2">其他</td>
                  <td>${basicData.remark}</td>
                  <td>${resultReport.remark}</td>
                  <td>${resultReport.otherPlan}</td>
                </tr>
              </tbody>
            </table> --%>
            
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>对本周期的总结</span>
                </h2>
              </div>
            </div>
              
           <%--  <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <tbody>
                <tr>
                  <td width="10%">学员总结：</td>
                  <td width="90%">${resultReport.studentSummary}</td>
                </tr>
                <tr>
                  <td width="10%">教练总结：</td>
                  <td width="90%">${resultReport.coachSummary}</td>
                </tr>
                <tr>
                  <td width="10%">学员对教练想说的话：</td>
                  <td width="90%">${resultReport.wordsToCoach}</td>
                </tr>
                <tr>
                  <td width="10%">教练对学员想说的话：</td>
                  <td width="90%">${resultReport.wordsToStudent}</td>
                </tr>
              </tbody>
            </table> --%>
            
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>对比照</span>
                </h2>
              </div>
            </div>
            
            <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <tbody>
                <tr>
                  <td width="50%">入营时</td>
                  <td width="50%">结营时</td>
                </tr>
                <tr>
                  <td width="50%">
                    <div style="width: 300px; margin: auto;">
                      <c:if test="${not empty resultReport.previousPicture}">
                        <img alt="入营时照片" src="${cloud.prod}/${resultReport.previousPicture}" width="100%" height="auto">
                      </c:if>
                    </div>
                  </td>
                  <td width="50%">
                    <div style="width: 300px; margin: auto;">
                      <c:if test="${not empty resultReport.laterPicture}">
                        <img alt="结营时照片" src="${cloud.prod}/${resultReport.laterPicture}" width="100%" height="auto">
                      </c:if>
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        </div>
      </div>
    </div>
  </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>
  
</body>

</html>
